package com.chenwenxuan.sync.ui.tree.desginer;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JToolBar;
import javax.swing.JTree;
import javax.swing.JScrollPane;

public class _TaskTreePanel extends JPanel{

	private static final long serialVersionUID = -2094851864939066743L;

	protected JTree taskTree;

	/**
	 * Create the panel.
	 */
	public _TaskTreePanel() {
		
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		add(panel, BorderLayout.NORTH);
		panel.setLayout(new BorderLayout(0, 0));
		
		JToolBar toolBar = new JToolBar();
		toolBar.setFloatable(false);
		panel.add(toolBar);
		
		JButton button = new JButton("\u5237\u65B0");
		toolBar.add(button);
		
		JScrollPane scrollPane = new JScrollPane();
		add(scrollPane, BorderLayout.CENTER);
		
		taskTree = new JTree();
		scrollPane.setViewportView(taskTree);
		taskTree.setRowHeight(20);

	}
	



}
